/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.inspur.edp.web.common;

/**
 * JITEngine执行常量参数
 * @author guozhiqi
 */
public class JITEngineConstants {
    private JITEngineConstants() {
    }

    /**
     * 工程路由文件后缀格式
     */
    public static final String ProjectRouteFileExtension = ".route.json";

    /**
     * 当前执行编译的NG版本  当前为Ng7 不可更改
     */
    public static final String NgVersion = "ng7";

    /**
     * 当前执行UI类库Kendo  不可更改
     */
    public static final String UiLibrary = "kendo";

    /**
     * Node_Modules文件目录
     */
    public static final String Node_ModulesPathName = "node_modules";

    /**
     * jit-engine  form  工程版本文件
     */
    public static final String ProjectVersionFileName = "projectversionserver.json";

    /**
     * 是否需要重新编译标识
     */
    public static final String ProjectVersionNeedRecompile = "ProjectVersionNeedRecompile";


    /**
     * jit 执行命令js文件相对于server nodejs路径的相对路径
     */
    public static final String JitCommandJsRelativePath = "node_modules/@farris/jit-engine/bin/index.js";

    /**
     * ng 执行命令相对于server的nodejs路径的相对路径
     */
    public static final String NgCommandRelativePath = "node_modules/@angular/cli/bin/ng";


    public static final String ServerScriptsPath = "serverscripts";

    public static final String TscCommandRelativePath = "typescript/bin/tsc";

    public static final String RollupCommandRelativePath = "rollup/bin/rollup";

}
